Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Ismail Mayat 4511 posts 10059 karma points MVP 2x admin c-trib
    Apr 07, 2009 @ 18:45
    Ismail Mayat
    0

    match position [SOLVED]

    Guys,

    I have the following xpath:

    [code]
    $nodes/node/@id=$myid
    [/code]

    what i actually want is the position that the match has occurred. So if i have $nodes with 10 nodes in and my match is at position 3 i want number 3 back. I could do it by calling a template and doing if statement then writing out position was wondering if there is better way of doing it.

    Regards

    Ismial

  • Ismail Mayat 4511 posts 10059 karma points MVP 2x admin c-trib
    Apr 08, 2009 @ 07:55
    Ismail Mayat
    0

    If anyone is interested i did it this way:

    [code]








    [/code]

    this works but does anyone know if there is a better way of doing this?

    Regards

    Ismail

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies